package com.sinbad.common.core.config;//package com.dandelion.emis.common.config.redis;
//
//import org.redisson.Redisson;
//import org.redisson.api.RedissonClient;
//import org.redisson.config.Config;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @author chengzx
// * date 2021/8/11 15:37
// * description：分布式锁配置
// */
//@Configuration
//public class RedissonClientConfig {
//
//    @Bean(destroyMethod = "shutdown")
//    public Redisson redisson(){
//        Config conf = new Config();
//        //单节点模式
//        conf.useSingleServer().setAddress("redis://192.168.1.20:6379").setDatabase(15);
////        //使用json序列化方式
////        Codec codec = new JsonJacksonCodec();
////        conf.setCodec(codec);
//        return (Redisson)Redisson.create(conf);
//    }
//}